CREATE TABLE [dbo].[DnnProduct_CDS_DistributionLog]
(
[ID] [int] NOT NULL IDENTITY(1, 1) NOT FOR REPLICATION,
[AssetID] [int] NOT NULL,
[EntryDate] [datetime] NOT NULL,
[Username] [varchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[ResponseStatus] [bit] NOT NULL,
[Data] [ntext] COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [dbo].[DnnProduct_CDS_DistributionLog] ADD CONSTRAINT [PK_DnnProduct_CDS_DistributionLog] PRIMARY KEY CLUSTERED  ([ID]) WITH (FILLFACTOR=85) ON [PRIMARY]
GO
ALTER TABLE [dbo].[DnnProduct_CDS_DistributionLog] WITH NOCHECK ADD CONSTRAINT [FK_DnnProduct_CDS_DistributionLog_DnnProduct_CDS_Assets] FOREIGN KEY ([AssetID]) REFERENCES [dbo].[DnnProduct_CDS_Assets] ([ID]) ON DELETE CASCADE ON UPDATE CASCADE NOT FOR REPLICATION
GO
